package kr.saeildamil.androidforstudy2;

import kr.saeildamil.androidforstudy2.ch20.Ch20Main;
import kr.saeildamil.androidforstudy2.ch21.Ch21Main;
import kr.saeildamil.androidforstudy2.ch22.Ch22Main;
import kr.saeildamil.androidforstudy2.ch23.Ch23Main;
import kr.saeildamil.androidforstudy2.ch24.Ch24Main;
import kr.saeildamil.androidforstudy2.ch25.Ch25Main;
import kr.saeildamil.androidforstudy2.ch26.Ch26Main;
import kr.saeildamil.androidforstudy2.ch27.Ch27Main;
import kr.saeildamil.androidforstudy2.ch28.Ch28Main;
import kr.saeildamil.androidforstudy2.ch2930.Ch29Main;
import kr.saeildamil.androidforstudy2.ch31.Ch31Main;
import kr.saeildamil.androidforstudy2.ch33.Ch33Main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void mOnClick(View v){
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.main_ch20_btn:
			intent.setClass(this, Ch20Main.class);
			break;
		case R.id.main_ch21_btn:
			intent.setClass(this, Ch21Main.class);
			break;
		case R.id.main_ch22_btn:
			intent.setClass(this, Ch22Main.class);
			break;
		case R.id.main_ch23_btn:
			intent.setClass(this, Ch23Main.class);
			break;
		case R.id.main_ch24_btn:
			intent.setClass(this, Ch24Main.class);
			break;
		case R.id.main_ch25_btn:
			intent.setClass(this, Ch25Main.class);
			break;
		case R.id.main_ch26_btn:
			intent.setClass(this, Ch26Main.class);
			break;
		case R.id.main_ch27_btn:
			intent.setClass(this, Ch27Main.class);
			break;
		case R.id.main_ch28_btn:
			intent.setClass(this, Ch28Main.class);
			break;
		case R.id.main_ch29_btn:
			intent.setClass(this, Ch29Main.class);
			break;
		case R.id.main_ch31_btn:
			intent.setClass(this, Ch31Main.class);
			break;
		case R.id.main_ch33_btn:
			intent.setClass(this, Ch33Main.class);
			break;
		}
		startActivity(intent);
	}
}
